package app.netmorphgui.tabs;


public class LayerConfiguration {

	// layer widths
	public static int rIw = 93;
	public static int rIIw = 118;
	public static int rIIIw = 118;
	public static int rIVw = 233;
	public static int rVw = 266;
	public static int rVIw = 284;

	// layer locations
	public static int pia = 0;
	public static int rIz =   pia - rIw;
	public static int rIIz =  pia-rIw - rIIw;
	public static int rIIIz = pia-rIw-rIIw - rIIIw;
	public static int rIVz =  pia-rIw-rIIw-rIIIw - rIVw;
	public static int rVz =   pia-rIw-rIIw-rIIIw-rIVw - rVw;
	public static int rVIz =  pia-rIw-rIIw-rIIIw-rIVw-rVw - rVIw;
	
	public static void configure(JMapTable table, String region)
	{
		

		int thickness=0, z=0; // z= center.z
		
		if(region.equals("I"))  { thickness = rIw;    z = rIz+rIw/2;  }
		if(region.equals("II"))  { thickness = rIIw;  z = rIIz+rIIw/2;  }
		if(region.equals("III")) { thickness = rIIIw; z = rIIIz+rIIIw/2; }
		if(region.equals("IV"))  { thickness = rIVw;  z = rIVz+rIVw/2;  }
		if(region.equals("V"))   { thickness = rVw;   z = rVz+rVw/2;   }
		if(region.equals("VI"))  { thickness = rVIw;  z = rVIz+rVIw/2;  }
		
		table.set(region+".centerX", "0");
		table.set(region+".centerY", "0");
		table.set(region+".centerZ", ""+z);
		table.set(region+".shape.radius", "1000");
		table.set(region+".shape.thickness", ""+thickness);

	}
}
